<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:include page="tempHeader.jsp" />
<jsp:include page="tempMenubar.jsp" />


<hr><div id="container">
        <div id="content" class="wrap">                
                
                <hr><h2 class="separate">Sell Fund</h2>
                <div class="marginBottom30 clearFix">
                    <div>
                    <jsp:include page="error-list.jsp" />
                     <c:if test="${not empty msg}">	 
                         <h3> ${msg} </h3>
                     </c:if>
                     <form id="sellfundform" action="sellFund.do" method="post">
                                <table class="card-activity expandable" cellspacing="5">
                                       <c:if test="${not empty fundList}">
                                       <tr>
                                            <th class="header" width ="60" style="text-align:left;">
                                             Select</th>
                                            <th class="header" width ="200" style="text-align:right;">
                                             Fund Symbol</th>
                                            <th class="header" width ="300" style="text-align:right;">
                                             Fund Name</th>
                                            <th class="header" width ="300" style="text-align:right;">
                                             Available Shares</th>
                                        </tr>
                                    <c:forEach var="entry" items="${fundList}">
                                        <tr>
					<td><input type="radio" name="selectedFund"
						value="${entry.fund_id}" onclick="showform('sell');" /></td>
                                        <td style="text-align: right;">${entry.symbol }</td>
					<td style="text-align: right;"><a href="viewFund.do?selectedFund=${entry.fund_id}">${entry.name}</a></td>
					<td style="text-align: right;">${entry.availableShares}</td>
                                        </tr>
                                    </c:forEach>
                                    </c:if>
                                </table> 
                         
                         <hr><h2 class="separate"></h2>
                  
                             <div id="contact_form" style="display:none;">
                                   <label for="number">Number Of Shares: </label><input maxlength="20" type="text" name="numberOfShares" />
                                   <input type="submit" class="submit_btn" name="btn" id="submit" value="Sell" />
                             </div>    
                                 
                                 
                                 
                    </form>
                    </div>
                </div>
                    
                    
                   
                    
                </div>
</div>
<jsp:include page="tempBottom.jsp" />